<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
 * Bootstrap file
 *
 * Define here basic initialization variables and functions
 *
 * PHP version 5.2
 *
 * @category Frameworks
 * @package  Omifk
 * @author   Claudio Beatrice <claudi0.beatric3@gmail.com>
 * @license  http://www.php.net/license/3_01.txt  PHP License 3.01
 * @version  SVN: $Id$
 * @link     http://www.silent-voice.org/
 */

define('OMIFK_DIRECTORY_ROOT', realpath(dirname(__FILE__) . '/../'));

define('OMIFK_DIRECTORY_DATA',     OMIFK_DIRECTORY_ROOT . '/data/');
define('OMIFK_DIRECTORY_DOC',      OMIFK_DIRECTORY_ROOT . '/doc/');
define('OMIFK_DIRECTORY_EXAMPLES', OMIFK_DIRECTORY_ROOT . '/examples/');
define('OMIFK_DIRECTORY_SRC',      OMIFK_DIRECTORY_ROOT . '/src/');
define('OMIFK_DIRECTORY_TESTS',    OMIFK_DIRECTORY_ROOT . '/tests/');
define('OMIFK_DIRECTORY_WWW',      OMIFK_DIRECTORY_ROOT . '/www/');

define('OMIFK_DIRECTORY_CONFIG',  OMIFK_DIRECTORY_SRC . 'config/');
define('OMIFK_DIRECTORY_LIBRARY', OMIFK_DIRECTORY_SRC . 'library/');
define('OMIFK_DIRECTORY_MODULES', OMIFK_DIRECTORY_SRC . 'modules/');

require_once OMIFK_DIRECTORY_CONFIG  . 'omifk.php';

require_once OMIFK_DIRECTORY_LIBRARY . 'utils.php';
require_once OMIFK_DIRECTORY_LIBRARY . 'locale.php';
require_once OMIFK_DIRECTORY_LIBRARY . 'watchdog.php';
require_once OMIFK_DIRECTORY_LIBRARY . 'base.php';

date_default_timezone_set(
    akh_get_recursive(
        $omifk_config, 
        array('date', 'timezone'), 
        'UTC'
    )
);

watchdog_init(
    akh_get_recursive(
        $omifk_config, 
        array('watchdog', 'verbosity'), 
        WATCHDOG_ERROR
    )    
);
